using Microsoft.AspNetCore.Mvc;

namespace WebApplication1.Controllers
{
    [ApiController]
    [Route("/[controller]/[action]")]
    public class TestController : ControllerBase
    {

    

        [HttpGet]
        [ActionName("index")]
        public object Index()
        {
            return new { 
                Code = 200,
                Environment.MachineName,
                RequestId = Guid.NewGuid(),
                Time = System.DateTime.Now,
            };
        }

        [HttpGet]
        [ActionName("index2")]
        public object woshinibaba()
        {
            return new
            {
                Code = 202,
                Environment.MachineName,
                RequestId = Guid.NewGuid(),
                Time = System.DateTime.Now,
            };
        }
    }
}